package sn.gandal.mobile.kalpet.data.entities;

import java.util.Date;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName="compte_coupon")
public class Coupon {
	@DatabaseField(canBeNull=false)
	public String numero;
	@DatabaseField(canBeNull=false)
	public String valeur;
	@DatabaseField(canBeNull=false, columnName="DATE_CREATION")
	public Date dateCreation;
	@DatabaseField(canBeNull=false)
	public Date dateFinValidite;
	@DatabaseField(canBeNull=false, dataType=DataType.ENUM_STRING )
	public StatusCompte statut;
	@DatabaseField(canBeNull=true)
	public String description;
	
	@DatabaseField(canBeNull = false, foreign = true)
	public CompteCoupon ccp;
	
	public Coupon() {
	}
	public String getNumero() {
		return numero;
	}
	public void setNumero(String numero) {
		this.numero = numero;
	}
	public String getValeur() {
		return valeur;
	}
	public void setValeur(String valeur) {
		this.valeur = valeur;
	}
	public Date getDateCreation() {
		return dateCreation;
	}
	public void setDateCreation(Date dateCreation) {
		this.dateCreation = dateCreation;
	}
	public Date getDateFinValidite() {
		return dateFinValidite;
	}
	public void setDateFinValidite(Date dateFinValidite) {
		this.dateFinValidite = dateFinValidite;
	}
	public StatusCompte getStatut() {
		return statut;
	}
	public void setStatut(StatusCompte statut) {
		this.statut = statut;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	
	
}
